package com.sdap2.entity.enums;

public enum DeviceType {
    SOIL_MOISTURE("土壤湿度", "%"),
    SOIL_TEMPERATURE("土壤温度", "℃"),
    AIR_TEMPERATURE("空气温度", "℃"),
    AIR_HUMIDITY("空气湿度", "%"),
    LIGHT("光照", "lux"),
    CO2("二氧化碳", "ppm"),
    CAMERA("摄像头", null);
    
    private final String description;
    private final String defaultUnit;
    
    DeviceType(String description, String defaultUnit) {
        this.description = description;
        this.defaultUnit = defaultUnit;
    }
    
    public String getDescription() {
        return description;
    }
    
    public String getDefaultUnit() {
        return defaultUnit;
    }
} 